<!DOCTYPE html>
<html lang="en">

<head>
  <meta charset="UTF-8">
  <meta name="viewport" content="width=device-width, initial-scale=1.0">
  <title>Document</title>
  <script src="./createObj.js"></script>
  <script src="./judgeObj.js"></script>
  <script src="./mergeObject.js"></script>
</head>

<body>
  <script>
    function Person(name, age) {
      this.name = name;
      this.age = age
      return 'ii'
    }


    let obj = createObj(Person, "hah", 30)
    console.log("Person()----", obj)
    console.log('judge---------(obj, Person)', mylnstanceOf(obj, Person))
    console.log('judge---------(Person, Object)', mylnstanceOf(Person, Object))


    const object1 = {
      a: [{
        s: 2
      }, {
        d: 7
      }]
    }
    const object2 = {
      a: [{
        s: 2
      }],
      b: 2,
      c: function () {}
    }
    console.log(mergeObject(object1, object2))
  </script>

</body>

</html>